export interface staffParams {
  page: number;
  pageSize: number;
  name: string;
  mobile: string;
  idCard: string;
  departmentId: number | undefined;
  roleId: number | undefined;
  carer: number | undefined;
}

export interface role {
  id: number;
  name?: string;
  companyId?: number;
  addAccountId?: number;
  addAccountName?: string;
  addTime?: string;
  accountCounts?: number;
  menuIds: number[];
}
export interface staffListData {
  id: number;
  companyId: number;
  photo: string;
  name: string;
  mobile: string | number;
  isCarer: number;
  departmentId: number;
  addAccountId: number;
  addAccountName: string;
  addTime: string;
  departmentName: string;
  roles: role[] | rolesId[];
  roleIds: number[];
  adminId: number;
  adminUserName: string;
  adminPwd: string;
  enable: number;
  idCard: string;
}

export interface staffListtReturn {
  counts: number;
  list: staffListData[];
  pageSize: number;
}

// 添加
export interface rolesId {
  id: number;
}
export interface addData {
  id: number;
  photo: string;
  name: string;
  mobile: number | null;
  isCarer: string;
  departmentId: number;
  departmentName: string;
  roles: rolesId[];
  roleIds: number[];
  adminUserName: string;
  adminPwd: string;
  enable: number;
  idCard: string;
}
